var data = [{
  user: ['yz','zz','yzz']
  }]
var num='yz'

function filter(data,find){
  for(var p in data){
    if(data[p].user.indexOf(num)!==-1){
      var index=data[p].user.findIndex(find);
      var dis=data[p].user.splice(index,1)[0];
      data[p].user.length = 0
      data[p].user.push(dis)
      return data
    }
  }
}
function find(num1){
  return num1===num
}
console.log(filter(data,find));

// 输出res = [{user: ['yz']}]